<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>{%$lngpack.member_title%} - {%$lngpack.sitename%}</title>
<meta name="keywords" content="{%$lngpack.keyword%}" />
<meta name="description" content="{%$lngpack.description%}" />
<link href="/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{%$rootdir%}js/jquery.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/basicrun.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/ajax_city.js"></script>
<script type="text/javascript" src="{%$rootdir%}js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$().ready(function() {
	$("#clickmenubotton li span").hover(function() {
		$(this).addClass("bgmenuhove2");
		$(this).parent().find("ul.subnav").slideDown('fast').show(); 
		$(this).parent().hover(function() {}, function(){
			$(this).parent().find("ul.subnav").fadeOut('fast');
			$(this).parent().find("span").removeClass("bgmenuhove2");
		});
	});
});
</script>
</head>

<body>
<div class="all">
	{%link file="en/public/head2.html"%}

				{%if $out=='center'%}
				<script type="text/javascript">
				  window.location.href = "/html/en/";
				</script>
				{%elseif $out=='editinfo'%}
				<!--个人资料修改-->
				<script type="text/javascript">
				var birthday_empty = "{%$lngpack.birthday_empty%}";
				var qq_empty = "{%$lngpack.qq_empty%}";

				function editinfo(){
					if(document.editmember.birthday.value!=""){
						if(document.editmember.birthday.value.match(/^[1-9][0-9]{3}\-[0-9]{2}\-[0-9]{2}$/ig)==null) {
							document.editmember.birthday.focus();
							alert(birthday_empty);
							return false;
						}
					}
					if(document.editmember.qq.value!=""){
						if(document.editmember.qq.value.match(/^[0-9]+$/ig)==null) {
							document.editmember.qq.focus();
							alert(qq_empty);
							return false;
						}
					}
					{%forlist from=$modelatt key=i%}
						{%if $modelatt[i].isvalidate==1%}
							{%if $modelatt[i].validatetext!=''%}
								if(document.editmember.{%$modelatt[i].attrname%}.value.match({%$modelatt[i].validatetext%}ig)==null) {
							{%else%}
								if(document.editmember.{%$modelatt[i].attrname%}.value==''){
							{%/if%}
							document.editmember.{%$modelatt[i].attrname%}.focus();
							alert('{%$modelatt[i].typename%} Input errors');
							return false;
						}
						{%/if%}
					{%/forlist%}
				}
				</script>
                
                <div class="content">
                    <div class="clear"></div>
                    <div class="denglu zhuce">
                        <form name="editmember" id="editmember" method="post" action="{%$mlink.membersave%}" onsubmit="return editinfo()">
                        <input type="hidden" name="upurl" value="{%$upurl%}">
                        <input type="hidden" name="inputclass" value="editinfo">
                        <input type="hidden" name="userid" value="{%$member.userid%}">
                        <input type="hidden" name="username" value="{%$member.username%}">
                        <input type="hidden" name="email" value="{%$member.email%}">
                        <input type="hidden" name="mvid" value="{%$member.mvid%}">
                        <span>Member ID:</span> {%$member.username%}<br />
                        <span>Mobile:</span><input  class="input1" name="mobile" type="text" value="{%$member.mobile%}" /><br />
                        <input class="submit" name="submit" value="submit"  type="submit" /> <input class="cancel" name="cancel" value="cancel" type="reset" />
                        </form>
                    </div>
                </div>

				{%elseif $out=='editpassword'%}
				<!--密码修改-->
				<script type="text/javascript">
					var oldpassword_err = "{%$lngpack.oldpassword_err%}";
					var password_len = "{%$lngpack.password_err%}";
					var password_len2 = "{%$lngpack.password_len2%}";
					var password2_empty = "{%$lngpack.password2_err%}";
					var password_disaffinity = "{%$lngpack.password_equal%}";
				</script>
                
                <div class="content">
                    <div class="clear"></div>
                    <div class="denglu zhuce">
                    
                        <form name="editmember" id="editmember" method="post" action="{%$mlink.membersave%}" onsubmit="return editpassword()">
                        <input type="hidden" name="upurl" value="{%$upurl%}">
                        <input type="hidden" name="inputclass" value="editpassword">
                        <input type="hidden" name="userid" value="{%$member.userid%}">
                        <input type="hidden" name="username" value="{%$member.username%}">
                        <input type="hidden" name="email" value="{%$member.email%}">
            
                        <span>Member ID:</span>{%$member.username%}<br />
                        <span>Old Password:</span><input  class="input1" name="oldpassword" type="text" /><br />
                        <span>New Password:</span><input  class="input1" name="password" type="text" /><br />
                        <span>Confirm Password:</span><input  class="input1" name="password2" type="text" /><br />
                        <input class="submit" name="submit" value="submit"  type="submit" /> <input class="cancel" name="cancel" value="cancel" type="reset" />
                        
                        </form>
                    </div>
                </div>
        
				{%elseif $out=='editReguralPassword'%}
				<!--卓越会员密码修改-->
				<script type="text/javascript">
					var oldpassword_err = "{%$lngpack.oldreguralpassword_error%}";
					var password_err1 = "{%$lngpack.newreguralpassword1_error%}";
					var password_err2 = "{%$lngpack.newreguralpassword2_error%}";
                                        function editReguralPassword(){
                                            if(document.editmember.oldpassword.value==""){
                                                alert(oldpassword_err);
                                                document.editmember.oldpassword.focus();
                                                return false
                                            }
                                            if(document.editmember.password.value=="" || document.editmember.password2.value == ""){
                                                alert(password_err1);
                                                document.editmember.password.focus();
                                                return false
                                            }
                                            if(document.editmember.password.value!=document.editmember.password2.value){
                                                alert(password_err2);
                                                document.editmember.password.focus();
                                                return false
                                            }
                                        }
				</script>
                
                <div class="content">
                    <div class="clear"></div>
                    <div class="denglu zhuce">
                    
                        <form name="editmember" id="editmember" method="post" action="{%$mlink.membersave%}" onsubmit="return editReguralPassword()">
                        <input type="hidden" name="username" value="{%$member.name%}">     
                        <input type="hidden" name="userid" value="{%$member.mcid%}">   
                        <input type="hidden" name="inputclass" value="editReguralPassword">
                        <span>Premier Member ID:</span>{%$member.name%}<br />
                        <span>Old Password:</span><input  class="input1" name="oldpassword" type="text" /><br />
                        <span>New Password:</span><input  class="input1" name="password" type="text" /><br />
                        <span>Confirm Password:</span><input  class="input1" name="password2" type="text" /><br />
                        <input class="submit" name="submit" value="Submit"  type="submit" /> <input class="cancel" name="cancel" value="cancel" type="reset" />
                        
                        </form>
                    </div>
                </div>
				
				{%elseif $out=='editemail'%}
				<!--邮箱修改-->
				<script type="text/javascript">
					var password_len = "{%$lngpack.password_err%}";
					var email_err = "{%$lngpack.email_err%}";
				</script>
                
                <div class="content">
                    <div class="clear"></div>
                    <div class="denglu zhuce">
                    
                        <form name="editmember" id="editmember" method="post" action="{%$mlink.membersave%}" onsubmit="return editmail()">
                        <input type="hidden" name="upurl" value="{%$upurl%}">
                        <input type="hidden" name="inputclass" value="editmail">
                        <input type="hidden" name="userid" value="{%$member.userid%}">
                        <input type="hidden" name="username" value="{%$member.username%}">
                                
                        <span>Member ID:</span> {%$member.username%}<br />
                        
                        <span>Old e-mail address:</span> {%$member.email%}<br />
                        
                        <span>Password:</span><input type="password" name="password" id="password" class="input1"/><br />
                        
                        <span>New e-mail address:</span><input type="text" name="email" id="email" class="input1" /><br />
                        
                        <input class="submit" name="submit" value="submit"  type="submit" /> <input class="cancel" name="cancel" value="cancel" type="reset" />
                        </form>
                    </div>
                </div>

				{%elseif $out=='orderlist'%}
				{%elseif $out=='orderread'%}
				{%elseif $out=='enquirylist'%}
				{%elseif $out=='enquiryread'%}
				{%elseif $out=='forumlist'%}
				{%/if%}
{%link file="en/public/footer.html"%}
</div>
</body>

</html>
